-- utiles.lua : basecly to create a matrix on ascrren amd get values ftom them

-- delclare a global variables
lm1 = 0
cm1 = 0
m1 = {}
-- alloc the m1 to lxc (lines, colums) in the memory
function alocm1(l,c)
	for i=1,l do
		m1[i] = {}
		for j=1,c do
			m1[i][j] = 0
		end
	end

end

lm2=0
cm2=0
m2 = {}
function alocm2(l,c)
	for i=1,l do
		m2[i] = {}
		for j=1,c do
			m2[i][j] = 0
		end
	end
end


lm3=0
cm3=0
m3 = {}
function alocm3(l,c)
	for i=1,l do
		m3[i] = {}
		for j=1,c do
			m3[i][j] = 0
		end
	end
end




function printMatrix(matrix)
	-- 6x12+
	print("001.00\t123.25\t125.35\t658.98\t547.87\t874.54\n")
	print("1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("123.25\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("1.01\t2.00\t125.87\t4.32\t5.25\t6.10\n")
	print("1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("300.01\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	print("11.31\t2.00\t3.56\t4.32\t5.25\t6.10\n")
	--text = text.."1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n"
	--text = text.."1.01\t2.00\t3.56\t4.32\t5.25\t6.10\n"

	--gui.control{type="field", lines=11, columns=30, text=text}


 -- if m1 = use a dimensions of m1... elseif m2 ....
--	if(matrix == "m3") then
		
--	end

end



